package com.gxuwz.Market.business.service;

import java.io.File;
import java.io.IOException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gxuwz.Market.business.dao.ServiceUploadDAO;
import com.gxuwz.Market.business.entity.TemplateUpload;
import com.gxuwz.core.pagination.Result;
@Service("serviceUploadServiceImpl")
public class ServiceUploadServiceImpl implements IServiceUploadService {

	/**
	 * 根据获取的文件和文件名保存到数据库
	 * @return
	 * @author 黄森南
	 * @throws IOException 
	 * @date 2018.01.22
	 */
@Autowired
public ServiceUploadDAO  serviceUploadDAO;
	@Override
public void fileUpload(File file,String fileFileName,String fileContentType) throws IOException {
serviceUploadDAO.fileUpload(file,fileFileName,fileContentType);
		
		
	}
	
	
	/**
	 *查询全部的文件列表（现在暂时不知道需求，就先查询全部，如果需要条件查询后续再改方法）
	 * @return
	 * @author 黄森南
	 * @throws IOException 
	 * @date 2018.01.22
	 */
	
	@Override
	public Result findAll(Integer page, Integer row) {
		
		return serviceUploadDAO.findAll(page, row);
	}
	
	
	

	

	


}
